package com.huqing.icu.rentuser.model;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.huqing.icu.enums.user.UserNumPanelTypeEnum;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;

import java.sql.Timestamp;

/**
 * @Description 日/月/年用户数量表
 * @Author huqing
 * @Date 2025/9/4 9:55
 **/
@TableName(value = "user_num_panel")
@Data
public class UserNumPanel {

    @Schema(name = "id", description = "主键ID")
    @TableId(value = "id")
    private Long id;

    @Schema(name = "date", description = "日期")
    @TableField(value = "date")
    private String date;

    /**
     * @see UserNumPanelTypeEnum
     */
    @Schema(name = "type", description = "类型")
    @TableField(value = "type")
    private Integer type;

    @Schema(name = "activeUserNum", description = "活跃的用户数量")
    @TableField(value = "active_user_num")
    private Integer activeUserNum;

    @Schema(name = "addUserNum", description = "新增的用户数量")
    @TableField(value = "add_user_num")
    private Integer addUserNum;

    @Schema(name = "actualUserNum", description = "真实的总用户数量")
    @TableField(value = "actual_user_num")
    private Integer actualUserNum;

    @Schema(name = "createTime", description = "创建时间")
    @TableField(value = "create_time")
    private Timestamp createTime;

    @Schema(name = "modifyTime", description = "修改时间")
    @TableField(value = "modify_time")
    private Timestamp modifyTime;
}
